package cn.ilikes.tools.nosql.jpa.clients.indexs.index.hadoops;

import java.io.File;
import java.io.IOException;
import java.util.Collection;

import org.apache.lucene.store.Directory;
import org.apache.lucene.store.IOContext;
import org.apache.lucene.store.IndexInput;
import org.apache.lucene.store.IndexOutput;
import org.apache.lucene.store.Lock;
import org.apache.lucene.store.LockFactory;
import org.apache.lucene.store.NIOFSDirectory;

public class LocalSystemDirectory extends NIOFSDirectory {

	public LocalSystemDirectory(File path) throws IOException {
		super(path);
		
	}

	@Override
	public IndexInputSlicer createSlicer(String name, IOContext context) throws IOException {
		
		return super.createSlicer(name, context);
	}

	@Override
	public IndexInput openInput(String name, IOContext context) throws IOException {
		
		return super.openInput(name, context);
	}

	@Override
	public synchronized void close() {
		// TODO Auto-generated method stub
		super.close();
	}

	@Override
	public IndexOutput createOutput(String name, IOContext context) throws IOException {
		
		return super.createOutput(name, context);
	}

	@Override
	public void deleteFile(String name) throws IOException {
		
		super.deleteFile(name);
	}

	@Override
	protected void ensureCanWrite(String name) throws IOException {
		// TODO Auto-generated method stub
		super.ensureCanWrite(name);
	}

	@Override
	public boolean fileExists(String name) {
		
		return super.fileExists(name);
	}

	@Override
	public long fileLength(String name) throws IOException {
		
		return 0;
	}

	@Override
	protected void fsync(String name) throws IOException {
		// TODO Auto-generated method stub
		super.fsync(name);
	}

	@Override
	public File getDirectory() {
		// TODO Auto-generated method stub
		return super.getDirectory();
	}

	@Override
	public String getLockID() {
		// TODO Auto-generated method stub
		return super.getLockID();
	}

	

	@Override
	public String[] listAll() throws IOException {
		// TODO Auto-generated method stub
		return super.listAll();
	}

	@Override
	protected void onIndexOutputClosed(FSIndexOutput io) {
		// TODO Auto-generated method stub
		super.onIndexOutputClosed(io);
	}

	@Override
	public void setLockFactory(LockFactory lockFactory) throws IOException {
		// TODO Auto-generated method stub
		super.setLockFactory(lockFactory);
	}

	

	@Override
	public void sync(Collection<String> names) throws IOException {
		// TODO Auto-generated method stub
		super.sync(names);
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	@Override
	public void clearLock(String name) throws IOException {
		// TODO Auto-generated method stub
		super.clearLock(name);
	}

	@Override
	public void copy(Directory to, String src, String dest, IOContext context) throws IOException {
		// TODO Auto-generated method stub
		super.copy(to, src, dest, context);
	}

	@Override
	public LockFactory getLockFactory() {
		// TODO Auto-generated method stub
		return super.getLockFactory();
	}

	@Override
	public Lock makeLock(String name) {
		// TODO Auto-generated method stub
		return super.makeLock(name);
	}

	
	
	

}
